package net.lanelife.casino.caipiao.dto.admin;

import javax.validation.constraints.NotNull;

import net.lanelife.casino.common.dto.TransientDTO;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class CrawlerConfigCreateDTO extends TransientDTO<Integer> {

	private static final long serialVersionUID = -1088463269295668436L;

	@NotNull
	private Integer gameId;
	
	@NotBlank
	@Length(min = 2, max = 10)
	private String gameName;
	
	@NotBlank
	@Length(min = 1, max = 255)
	private String url;
	
	@NotBlank
	@Length(min = 1, max = 255)
	private String expression;
	
	@NotBlank
	@Length(min = 1, max = 255)
	private String groupIndexs;
	
	@NotNull
	private Integer delay;
	
	@NotNull
	private Integer timeout;

	public Integer getGameId() {
		return gameId;
	}

	public void setGameId(Integer gameId) {
		this.gameId = gameId;
	}

	public String getGameName() {
		return gameName;
	}

	public void setGameName(String gameName) {
		this.gameName = gameName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getExpression() {
		return expression;
	}

	public void setExpression(String expression) {
		this.expression = expression;
	}

	public String getGroupIndexs() {
		return groupIndexs;
	}

	public void setGroupIndexs(String groupIndexs) {
		this.groupIndexs = groupIndexs;
	}

	public Integer getDelay() {
		return delay;
	}

	public void setDelay(Integer delay) {
		this.delay = delay;
	}

	public Integer getTimeout() {
		return timeout;
	}

	public void setTimeout(Integer timeout) {
		this.timeout = timeout;
	}
	
	
}
